import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

import {GameManageComponent} from './game-manage/game-manage.component';
import {DivideDeveloperListComponent} from './divide-developer-list/divide-developer-list.component';
import {DivideGameEditComponent} from './divide-game-edit/divide-game-edit.component';
import {DivideGameDetailsComponent} from './divide-game-details/divide-game-details.component';
import {DivideDeveloperDetailsComponent} from './divide-developer-details/divide-developer-details.component';
import {PromotionIncomeRechangeComponent} from './income-manage/promotion-income-rechange/promotion-income-rechange.component';
import {PromotionIncomeConsumeComponent} from './income-manage/promotion-income-consume/promotion-income-consume.component';
import {UserManageComponent} from './user/user-manage/user-manage.component';
import {LotteryComponent} from './operate/lottery/lottery.component';
import {PrizeRecordsComponent} from './operate/prize-records/prize-records.component';
import {MallComponent} from './operate/mall/mall.component';
import {ExchangeRecordsComponent} from './operate/exchange-records/exchange-records.component';

import {DivideClassifyListComponent} from './divide-classify-list/divide-classify-list.component';
import {GameOperateHotshComponent} from './game-operate-manage/game-operate-hotsh/game-operate-hotsh.component';
import {GameOperateNoticeListComponent} from './game-operate-manage/game-operate-notice-list/game-operate-notice-list.component';
import {GameOperateNoticeEditComponent} from './game-operate-manage/game-operate-notice-edit/game-operate-notice-edit.component';
import {GameOperateWelfareComponent} from './game-operate-manage/game-operate-welfare/game-operate-welfare.component';
import {EditGoodsComponent} from './operate/mall/edit-goods/edit-goods.component';
import { GameOperateBannerComponent } from './game-operate-manage/game-operate-banner/game-operate-banner.component';
import {ActivityConfigComponent} from './operate/activity-config/activity-config.component';
import { GameNewRecommendComponent } from './game-new-recommend/game-new-recommend.component';

const routes: Routes = [
  // 默认访问
  {path: '', redirectTo: 'gameManage', pathMatch: 'full'},

  {path: 'divide-developer-list', component: DivideDeveloperListComponent, data: {breadcrumb: '开发者管理'}},
  {path: 'divide-developer-details', component: DivideDeveloperDetailsComponent, data: {breadcrumb: '开发者信息'}},
  {path: 'divide-classify-list', component: DivideClassifyListComponent, data: {breadcrumb: '应用分类'}},
  {path: 'gameManage', component: GameManageComponent, data: {breadcrumb: '应用管理'}},
  {path: 'divide-game-details', component: DivideGameDetailsComponent, data: {breadcrumb: '新增/编辑游戏'}},
  {path: 'divide-game-edit', component: DivideGameEditComponent, data: {breadcrumb: '游戏信息'}},

  {path: 'promotion-income-rechange', component: PromotionIncomeRechangeComponent, data: {breadcrumb: '充值记录'}},
  {path: 'promotion-income-consume', component: PromotionIncomeConsumeComponent, data: {breadcrumb: '消费记录'}},
  // {path: 'divide-game-edit', component: DivideGameEditComponent, data: {breadcrumb: '游戏信息'}},
  {path: 'promotionUserManage', component: UserManageComponent, data: {breadcrumb: '用户管理'}},

  {path: 'game-operate-banner', component: GameOperateBannerComponent, data: {breadcrumb: 'banner'}},
  {path: 'game-operate-hotsh', component: GameOperateHotshComponent, data: {breadcrumb: '热门搜索'}},
  {path: 'game-operate-notice-list', component: GameOperateNoticeListComponent, data: {breadcrumb: '活动公告'}},
  {path: 'game-operate-notice-edit', component: GameOperateNoticeEditComponent, data: {breadcrumb: '活动公告编辑'}},
  {path: 'game-operate-welfare', component: GameOperateWelfareComponent, data: {breadcrumb: '游戏福利'}},
  {path: 'game-new-recommend', component: GameNewRecommendComponent, data: {breadcrumb: '新游推荐'}},

  {path: 'operate-lottery', component: LotteryComponent, data: {breadcrumb: '抽奖配置'}},
  {path: 'operate-prizeRecords', component: PrizeRecordsComponent, data: {breadcrumb: '奖品记录'}},
  {path: 'operate-mall', component: MallComponent, data: {breadcrumb: '积分商城', keep: true}},
  {path: 'operate-editGoods', component: EditGoodsComponent, data: {breadcrumb: '编辑商品'}},
  {path: 'operate-exchangeRecords', component: ExchangeRecordsComponent, data: {breadcrumb: '兑换记录'}},
  {path: 'operate-activityConfig', component: ActivityConfigComponent, data: {breadcrumb: '活动配置'}},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PromotionShareRoutingModule {
}
